#! /bin/bash

# regenerate ssh_host keys
ls /etc/ssh/ssh_host_* > /dev/null
if [ $? -ne 0 ]; then
    dpkg-reconfigure -fnoninteractive openssh-server
fi
rm $0
